import React, { useEffect, useState, useReducer, useContext } from 'react';

import {MyContext} from './provider';

export default function Sub() {
  const { state, dispatch } = useContext(MyContext);

  console.log('third')
  return (
    <div>
     third Count: {state.count}

    </div>
  );
}
